package com.inspur.spark;
import org.apache.spark.SparkConf
import org.apache.spark.SparkContext

object rdd {
  
  def main(args:Array[String]):Unit={
     val conf=new SparkConf()
      val sc=new SparkContext(conf)
    val array=Array(1,2,3,4,5)
    val rdd_array=sc.parallelize(array)
    val list=List(1,2,3,4,5)
    val rdd_list=sc.parallelize(list)
    val lines = sc.textFile("file:///d:/words.txt")
  }
}